package com.train.redis.config;

import com.train.redis.core.generator.MyKeyGenerator;
import org.springframework.cache.interceptor.KeyGenerator;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class KeyGeneratorConfig {

    @Bean
    public KeyGenerator keyGenerator() {
        return new MyKeyGenerator();
    }
}
